clear all;
clc;

% dc0 = greatest % DC activation w/o DR activation
% epidural
% commented part = extradural AD-TECH
% dc0_epi_0=[42,25,30,33,31];
% dc0_epi_10=[24,6.5,8.5,15,14];
% dc0_epi_20=[7,0,0,0,0];
dc0_epi_0=[20,30,30,34,38];
dc0_epi_10=[6,12,9.5,19,22];
dc0_epi_20=[0,0,0,0,4];
% subdural
dc0_sub_0=[66,43,51,50,52];
dc0_sub_10=[50,26,20,30,28];
dc0_sub_20=[26,2,3,2.5,2.5];

% the effects of midline deviation
[h_epi_0vs10,p1]=kstest2(dc0_epi_0,dc0_epi_10)
[h_epi_0vs20,p2]=kstest2(dc0_epi_0,dc0_epi_20)
[h_epi_10vs20,p3]=kstest2(dc0_epi_10,dc0_epi_20)
[h_sub_0vs10,p4]=kstest2(dc0_sub_0,dc0_sub_10)
[h_sub_0vs20,p5]=kstest2(dc0_sub_0,dc0_sub_20)
[h_sub_10vs20,p6]=kstest2(dc0_sub_10,dc0_sub_20)


% the effects of electrode placement
[h_0_subvsepi,p7]=kstest2(dc0_epi_0,dc0_sub_0)
[h_10_subvsepi,p8]=kstest2(dc0_epi_10,dc0_sub_10)
[h_20_subvsepi,p9]=kstest2(dc0_epi_20,dc0_sub_20)
